package com.laxcen.smoke.service;

import com.laxcen.smoke.dto.res.AdvertisementAndNoRes;
import com.laxcen.smoke.util.Response;

import java.text.ParseException;
import java.util.List;

public interface AdvertisementService {

    Response insert(String adverimg);

    Response delete(String id);

    Response update(String adverimg, String id);

    Response<List<AdvertisementAndNoRes>> getList();

    Response<List<AdvertisementAndNoRes>> getListByCondition(String starttime, String endtime) throws ParseException;

    Response<AdvertisementAndNoRes> getOneAdv(String id);

}
